<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>数据字典-大正</title>
</head>

<body>
	<span
		style="font-weight: bold; color:#F93; aligh: center; font-size: 20px">
		客户工费-修改
	</span>

	<s:if test='#request.operation == "new"'>
		<s:form action="custchargeaction?action=add">
			<s:hidden name="clientid" value="%{#request.cid}"></s:hidden>
			<s:textfield name="id" label='编号' readOnly="true" value="系统自动生成"></s:textfield>
			<s:textfield name="ciname" label='用户名称' readOnly="true" value="%{#request.ciname}"></s:textfield>
			<s:textfield name="metalper" label="金属成色" ></s:textfield>
			<s:textfield name="sstype" label='首饰类别'></s:textfield>
			<s:textfield name="unitcharge" label='单件工费'></s:textfield>
			<s:textfield name="lossrate" label='损耗率'></s:textfield>
			<s:textfield name="mstoneacount" label='主石粒数'></s:textfield>
			<s:textfield name="sstoneacount" label='副石粒数'></s:textfield>
			<s:textarea name="note" label="备注" cols="40" rows="10" />
			<s:submit value="提交"></s:submit>
		</s:form>
	</s:if>
	<s:else>
		<s:form action="custchargeaction?action=mod">
			<s:hidden name="clientid" value="%{#request.cid}"></s:hidden>
			<s:textfield name="id" label='编号' readOnly="true" value="系统自动生成"></s:textfield>
			<s:textfield name="ciname" label='用户名称' readOnly="true" value="%{#request.ciname}"></s:textfield>
			<s:textfield name="metalper" label="金属成色" value="%{#request.ccrecord.metalper}"></s:textfield>
			<s:textfield name="sstype" label='首饰类别' value="%{#request.ccrecord.sstype}"></s:textfield>
			<s:textfield name="unitcharge" label='单件工费' value="%{#request.ccrecord.unitcharge}"></s:textfield>
			<s:textfield name="lossrate" label='损耗率' value="%{#request.ccrecord.lossrate}"></s:textfield>
			<s:textfield name="mstoneacount" label='主石粒数' value="%{#request.ccrecord.mstoneacount}"></s:textfield>
			<s:textfield name="sstoneacount" label='副石粒数' value="%{#request.ccrecord.sstoneacount}"></s:textfield>
			<s:textarea name="note" label="备注" cols="40" rows="10" value="%{#request.ccrecord.note}" />
			<s:submit value="提交"></s:submit>
		</s:form>
	</s:else>
</body>
</html>
